package com.acme.bankapp.service.networking;

import java.io.*;

/**
 * Worker for {@link BankServer}
 * @author Gregory Sobko
 */
public interface ServerWorker {

    /**
     * Method, implementing work logics
     * @param inputStream Input stream from opened socket
     * @param outputStream Output stream from opened socket
     * @throws IOException
     */
    public void doWork(InputStream inputStream, OutputStream outputStream) throws IOException;
}
